<?php
namespace app\admin\validate;
use think\Validate;

class Member extends Validate
{
	protected $rule=[
		'username'=>'unique:member,username,id',
		'name'=>'unique:member,name,id',
		'phone'=>'unique:member,phone,id',
		'pwd_confirm'=>'confirm:pwd',
	];
	protected $message=[
		'username'=>'用户名已存在',
		'name'=>'姓名已存在',
		'phone'=>'手机号码已存在',
		'pwd_confirm'=>'两次密码不一致',
	];
}